﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using AD.DAL;
using AD.Model;

namespace AD.BLL
{
    public class DownloadLogBLL
    {
        public static int SumFilter(string filter)
        {
            return DownloadLogDAL.Sum(filter);
        }
        public static int Sum()
        {
            return SumFilter("");
        }

        public static IList<DownloadLogMod> QueryByPage(string filter, int pageSize, int index, out int maxcount)
        {
            return DownloadLogDAL.QueryByPage(filter, pageSize, index, out maxcount);
        }

        public static int DeleteAll() {
            return DownloadLogDAL.DeleteAll();
        }
        public static int Delete(int autoId) {
            return DownloadLogDAL.Delete(autoId);
        }
        public static int Delete(string autoId) {
            return Delete(int.Parse(autoId));
        }
        public static int Insert(DownloadLogMod login)
        {
            return DownloadLogDAL.Insert(login);
        }
        public static DataTable GetLogs()
        {
            return DownloadLogDAL.GetLogs();
        }
        public static DataTable GetLogsFilter(string filter)
        {
            return DownloadLogDAL.GetLogsFilter(filter);
        }
    }
}